/**
 *    Copyright 2009 Seth Albnaese
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/** $Id: AquiferMessage.java 60 2009-06-15 08:47:09Z salbanese0080@gmail.com $ */

package org.aquiferserver.common;

import java.util.Date;

/**
 * @author Seth Albanese
 *
 */
public class AquiferMessage {

	public static final Integer FROM_SERVER = -1;
	
	private MessageType type;
	private Integer sender;
	private long sendTime;
	
	public AquiferMessage()
	{
		this.setSendTime( new Date().getTime() );
	}
	
	public MessageType getType() { return type; }
	public void setType( MessageType type ) { this.type = type; }
	
	public Integer getSender() { return sender; }
	public void setSender( Integer sender ) { this.sender = sender; }
	
	public long getSendTime() { return sendTime; }
	public void setSendTime( long time ) { this.sendTime = time; }
		
}
